add

function add(value: T): boolean

Adds an element to the collection.

Return

true if the element was added, and false if the collection does not allow duplicates and the element is already contained in the collection.

Since

0.6.0

Parameters

value

The element to add.